Previous Book Contents Book Index Next

Inside Macintosh: Open Transport /
Chapter 11 - AppleTalk Service Providers / AppleTalk Service Provider Reference
Constants and Data Types


The AppleTalk Information Structure

You use the AppleTalk information structure to obtain information about the current AppleTalk environment for the node on which your application is running. The AppleTalk information structure is defined by the AppleTalkInfo data type.

struct AppleTalkInfo {
   DDPAddress  fOurAddress;
   DDPAddress  fRouterAddress;
   UInt16      fCableRange[2];
   UInt16      fFlags;
};
Field Description
fOurAddress
The network number and node ID of your node.
fRouterAddress
The network number and node ID of the closest router on your network.
fCableRange
A two-element array indicating the first and last network numbers for the current extended network to which the machine is connected. For nonextended networks, this returns an asterisk (*).
Flags
A set of flag bits that describe the network:
 Flag ValueDescription
 kATalkInfoIsExtended0x0001The current network is an extended network.
 kATalkInfoHasRouter0x0002There is a router on the same network as this machine.
 kATalkInfoOneZone0x0004This network has only one zone.
SEE ALSO
Use the OTATalkGetInfo function (page 11-20) to obtain the AppleTalkInfo data.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
15 AUG 1996